
var interface={
    setHead: async function () {
        let resultArray =await Param.ReadICCard(2, 0, 1113,"", ""); //市医保证历本读卡
        if (resultArray.ret <0){
            alert(resultArray.input+" "+resultArray.output)
        }
        let IdentificationCode = resultArray.output.split("|")[0]
        let feeId = await Param.medical.medicalType(IdentificationCode)
        if(feeId==2){
            let patPostcode = resultArray.output.substr(0,6)
            let inParameter = resultArray.output.split("|")[0]+"|"+dayjs().format("YYYYMMDDHHmmss")+"||"
            resultArray = await Param.UserApply(2, 2100, patPostcode,inParameter, 0, "");//市医保市民卡本读卡
        }else if(feeId==3){
            resultArray = await Param.UserApply(feeId, 10, "", "1",'1','');
        }
        if (resultArray.ret == 0) {

        }else {
            alert(resultArray.output)
        }
    }
}

